package a.a;

import a.c.bb;
import a.c.e;

class eb
  implements s
{
  private int a;
  private int c;
  private bb[] e;
  
  public eb(int paramInt)
  {
    this.a = paramInt;
    this.c = -1;
    this.e = new bb[paramInt + 1];
    do
    {
      for (int i = 0; !bool; i++)
      {
        if (i >= paramInt + 1) {
          break;
        }
        this.e[i] = new bb();
      }
    } while (j != 0);
  }
  
  public e a()
  {
    int i = m.b;
    boolean bool = m.a;
    do
    {
      do
      {
        if (this.c < 0) {
          break;
        }
        if (bool) {
          break label56;
        }
        if (!this.e[this.c].isEmpty()) {
          break;
        }
        this.c -= 1;
      } while (!bool);
    } while (i != 0);
    if (this.c >= 0) {
      label56:
      return this.e[this.c].o();
    }
    return null;
  }
  
  public void a(e parame, int paramInt)
  {
    if (m.b == 0)
    {
      this.e[paramInt].c(parame);
      if (paramInt <= this.c) {}
    }
    else
    {
      this.c = paramInt;
    }
  }
  
  public void c(e parame, int paramInt)
  {
    this.e[paramInt].add(parame);
  }
  
  public boolean b()
  {
    int i = m.b;
    boolean bool = m.a;
    do
    {
      do
      {
        if (this.c < 0) {
          break;
        }
        if (bool) {
          break label56;
        }
        if (!this.e[this.c].isEmpty()) {
          break;
        }
        this.c -= 1;
      } while (!bool);
    } while (i != 0);
    label56:
    return this.c < 0;
  }
  
  public void c()
  {
    int j = m.b;
    boolean bool = m.a;
    int i = 0;
    if (i <= this.a) {}
    while (j != 0)
    {
      this.e[i].clear();
      i++;
      if ((j == 0) && (bool)) {
        return;
      }
      if (!bool) {
        break;
      }
    }
    this.c = -1;
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.a.eb
 * JD-Core Version:    0.7.0.1
 */